import { IsInt, IsString } from 'class-validator';

export class CreatePayOrderDto {
    @IsInt()
    readonly goodsId: number;
    @IsString()
    readonly payType: string;
    @IsString()
    readonly payChannelUser: string;
}

export class CreateLogicPayOrderDto {
    @IsString()
    readonly projectName: string;
    @IsString()
    readonly payType: string;
    @IsString()
    readonly payChannelUser: string;
    @IsString()
    readonly outTradeNo: string;
    @IsInt()
    readonly amount: number;
}

export class FindOnePayOrderDto {
    @IsString()
    readonly transactionId: string;
}

